﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;

public partial class Artigo_VisualizarArtigoAG : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Usuario"] == null || Session["TipoUsuario"] == null)
            Response.Redirect("../Login.aspx");
        if (Session["TipoUsuario"].ToString() != "Avaliador")
            Response.Redirect("../Default.aspx");
    }
    [WebMethod]
    public static Artigo getArtigo(string idArtigo)
    {
        return Artigo.getArtigoById(new Guid(idArtigo));
    }
}